	$(document).ready(function() {
 			$("#searchSubmit").click(function(){
				//alert("searchSubmit");
 			
				//$("#searchTable").show();
				//alert("searchSubmit");		
			}); 
 			$('.datatable').dataTable();
			
		});


function openQtxx(obj){
		//alert(obj.toString()+"");
		var tds=$(obj).parent().parent().parent().find('td');
		$('#nsrsbh1').val(tds.eq(0).text().trim());
		$('#xpdm1').val(tds.eq(1).text().trim());
		
		var xpdm = tds.eq(4).text().trim();
		//This is new code for the radio.
		//if(tds.eq(1).text()=='男'){$('#p_man').attr("checked","checked");}else{$('#p_woman').attr("checked","checked");}
		$('#qtxxModalLabel').modal('show');
		//设置z-index位于前
		$("#qtxxModalLabel").css("zIndex","1052");
		//$('#searchTable').dataTable();

	}



function openJsxx(obj){
	var tds=$(obj).parent().parent().parent().find('td');
	var xphm = tds.eq(2).text().trim();
	//alert("xphm:"+xphm);
	//$('#jstd').show;
	$("#"+xphm+"js").modal('show');
	$("#"+xphm+"js").css("zIndex","1052");
}

function openMxxx(obj){
	var tds=$(obj).parent().parent().parent().find('td');
	var xphm = tds.eq(2).text().trim();
	//alert("xphm:"+xphm);
	//$('#mxtd').show;
	$("#"+xphm+"mx").modal('show');
	$("#"+xphm+"mx").css("zIndex","1052");
}



String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g, "");
	}